package com.ra.order;

import java.math.BigDecimal;
import java.sql.Timestamp;

import com.espirit.eap.sa.LoginUser;
import com.ra.landlord.Room;
import com.ra.pay.PaymentRecord;

/**
 * 订单结构体
 * 
 * @author shen.kang Date: 2015-5-13
 *
 */
public class PayOrder {

	private Integer id;
	
	// 商户订单号
	private String outTradeNo;
	
	// 订单创建时间
	private Timestamp createTime;
	
	// 订单状态 1：未付款 2：已付款
	private Integer orderState;
	
	// 支付记录
	private PaymentRecord paymentRecord;
	
	// 订单描述
	private String orderDec;
	
	// 商品展示URL
	private String showURL;
	
	// 用户信息
	private LoginUser loginUser;
	
	// 订单金额
	private BigDecimal totalFee;
	
	// 服务器异步通知页面路径
	private String notifyURL;
	
	// 服务器同步通知页面路径
	private String returnURL;
	
	// 订单名称
	private String orderName;
	
	// 订单对应房间
	private Room room;
	
	public String getNotifyURL() {
		return notifyURL;
	}

	public void setNotifyURL(String notifyURL) {
		this.notifyURL = notifyURL;
	}

	public String getReturnURL() {
		return returnURL;
	}

	public void setReturnURL(String returnURL) {
		this.returnURL = returnURL;
	}

	private long totalCount;
	
	private long maxPageNo;
	
	// 历史订单查询开始时间
	private String startTime;
	
	// 历史订单查询结束时间
	private String endTime;
	
	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getOrderState() {
		return orderState;
	}

	public void setOrderState(Integer orderState) {
		this.orderState = orderState;
	}

	public PaymentRecord getPaymentRecord() {
		return paymentRecord;
	}

	public void setPaymentRecord(PaymentRecord paymentRecord) {
		this.paymentRecord = paymentRecord;
	}

	public String getOrderDec() {
		return orderDec;
	}

	public void setOrderDec(String orderDec) {
		this.orderDec = orderDec;
	}

	public String getShowURL() {
		return showURL;
	}

	public void setShowURL(String showURL) {
		this.showURL = showURL;
	}

	public LoginUser getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(LoginUser loginUser) {
		this.loginUser = loginUser;
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}

	public BigDecimal getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(BigDecimal totalFee) {
		this.totalFee = totalFee;
	}

	public long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}

	public long getMaxPageNo() {
		return maxPageNo;
	}

	public void setMaxPageNo(long maxPageNo) {
		this.maxPageNo = maxPageNo;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

}
